package lab02.Test10;

/**
 * Created by Administrator on 2017/10/21.
 */
public class Test {
    public static void main(String[] args) {


        ChinaPeople c=new ChinaPeople();

        c.setName("WW");
        c.setAge(18);
        c.setIDnumber("1234754");
        c.setSex("男");
        c.speackHello();
        System.out.println(c.getName());
        System.out.println(c.getSex("男"));
        System.out.println(c.getIDnumber());
        System.out.println(c.getAge());
        c.chinesepoem();
        System.out.println(" ");

        AmericanPeople a=new AmericanPeople();
        a.setName("LL");
        a.setAge(20);
        a.setIDnumber("1234754");
        a.setSex("男");
        a.speackHello();
        System.out.println(a.getName());
        System.out.println(a.getSex("男"));
        System.out.println(a.getIDnumber());
        System.out.println(a.getAge());
        a.SanFrancisco();
        System.out.println(" ");
        a.NewYork();
        System.out.println(" ");

        BeiJingPeople b=new BeiJingPeople();
        b.setName("PP");
        b.setAge(43);
        b.setIDnumber("12345475654");
        b.setSex("男");
        b.speackHello();
        System.out.println(b.getName());
        System.out.println(b.getSex("男"));
        System.out.println(b.getIDnumber());
        System.out.println(b.getAge());
        a.SanFrancisco();
        System.out.println(" ");
        a.NewYork();
        System.out.println(" ");
        a.setName("LL");
        a.setAge(20);
        a.setIDnumber("1234754");
        a.setSex("男");
        a.speackHello();
        System.out.println(a.getName());
        System.out.println(a.getSex("男"));
        System.out.println(a.getIDnumber());
        System.out.println(a.getAge());
        b.TheGreatWall();
        System.out.println(" ");
        b.ThePalaceMuseum();
        System.out.println(" ");
        b.SummerPalace();
        System.out.println(" ");
    }
}

